﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccessLayer;
using System.Data;
using System.Data.OleDb;
using InfoLayer;

namespace ControlLayer
{
    public class ChiTietBaoCaoDoanhThuControl
    {
        private ChiTietBaoCaoDoanhThuDataAccess chiTietBaoCaoDoanhThuDA = new ChiTietBaoCaoDoanhThuDataAccess();

        public DataTable LayBangDanhSachChiTietBaoCao()
        {
            return chiTietBaoCaoDoanhThuDA.LayBangDanhSachChiTietBaoCao();
        }

        public void Insert(ref ChiTietBaoCaoDoanhThuInfo chiTietBaoCaoDoanhThuInfo)
        {
            chiTietBaoCaoDoanhThuDA.Insert(ref chiTietBaoCaoDoanhThuInfo);
        }

        public void Update(ChiTietBaoCaoDoanhThuInfo chiTietBaoCaoDoanhThuInfo)
        {
            chiTietBaoCaoDoanhThuDA.Update(chiTietBaoCaoDoanhThuInfo);
        }

        public void Delete(ChiTietBaoCaoDoanhThuInfo chiTietBaoCaoDoanhThuInfo)
        {
            chiTietBaoCaoDoanhThuDA.Delete(chiTietBaoCaoDoanhThuInfo);
        }

        public string TaoMaTuDong(string maGoc, int batDau)
        {
            return chiTietBaoCaoDoanhThuDA.TaoMaTuDong(maGoc, batDau);
        }
    }
}
